package com.ruoyi.report.service.impl;

import com.ruoyi.report.domain.HanZaiProjectInfo;
import com.ruoyi.report.mapper.HanZaiProjectInfoMapper;
import com.ruoyi.report.service.HanZaiProjectInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: 憨憨爱崽崽
 * Name: ProjectInfoServiceImpl
 * Date: 2022/3/28
 * Time: 14:03
 **/
@Service
public class HanZaiProjectInfoServiceImpl implements HanZaiProjectInfoService {
    @Autowired
    private HanZaiProjectInfoMapper projectInfoMapper;

    /**
     * 查询项目信息
     *
     * @param projectid 项目信息主键
     * @return 项目信息
     */
    @Override
    public HanZaiProjectInfo selectProjectInfoByProjectid(Long projectid) {
        return projectInfoMapper.selectProjectInfoByProjectid(projectid);
    }

    /**
     * 查询项目信息列表
     *
     * @param projectInfo 项目信息
     * @return 项目信息
     */
    @Override
    public List<HanZaiProjectInfo> selectProjectInfoList(HanZaiProjectInfo projectInfo) {
        return projectInfoMapper.selectProjectInfoList(projectInfo);
    }

}
